#%RAML 1.0

    title: Party API
    baseUri: http://localhost:8081
    version: v1
    
    documentation:
      - title: mod-party API
        content: This documents the API calls that can be made to post party for users, and to get them
    
    types:
      reserve: !include reserve.json
      reserveCollection: !include reserveCollection.json
      errors: !include raml-util/schemas/errors.schema
    
    traits:
      validate: !include raml-util/traits/validation.raml
      language: !include raml-util/traits/language.raml
      pageable:  !include raml-util/traits/pageable.raml
      searchable: !include raml-util/traits/searchable.raml
    
    resourceTypes:
      collection: !include raml-util/rtypes/collection.raml
      collection-item: !include raml-util/rtypes/item-collection.raml
      item-collection-put: !include raml-util/rtypes/item-collection-put.raml

    /party/reserve:
      displayName: reserve
      description: 提供活动报名的业务处理接口
      type:
        collection:
          schemaCollection: reserveCollection
          schemaItem: reserve
          exampleCollection: !include examples/reserveCollection.sample
          exampleItem: !include examples/reserve.sample
    
      post:
        is: [validate]

      get:
        is: [
          searchable: {description: "根据相关的查询条件获取读者报名记录,query=(isDel = 0)", example: "query=(isDel = 0)"},
          pageable,
          validate
        ]

      /{id}:
          displayName: reserve
          description: 获得,删除或者更新一个报名记录
          type:
            item-collection-put:
              schema: reserve
              exampleItem: !include examples/reserve.sample

    